package cn.com.generaldata.os.newpojo;

import java.util.Date;

import com.sun.xml.internal.bind.CycleRecoverable;

/**
 * 报表类型实体
 */
public class IndicatorInput implements java.io.Serializable, CycleRecoverable {
	private static final long serialVersionUID = 5454155825314635342L;

	private Integer id;
	private String name;
	private String code;
	private String unit;
	private Integer enabled;
	private Integer frequency;
	private String industryCode;
	private Integer canGetLastTimeData;
	private Integer dataIsUnique;
	private String description;
	private Date createTime;
	private Integer category;

	public Integer getCategory() {
		return category;
	}

	public void setCategory(Integer category) {
		this.category = category;
	}

	private Date lastUpdate;

	/**
	 * 解决CXF循环引用问题.
	 * 
	 * @param arg0
	 * @return
	 */
	@Override
	public Object onCycleDetected(Context arg0) {
		IndicatorInput temp = new IndicatorInput();
		temp.setId(id);
		return temp;
	}

	public IndicatorInput() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Integer getEnabled() {
		return enabled;
	}

	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}

	public Integer getFrequency() {
		return frequency;
	}

	public void setFrequency(Integer frequency) {
		this.frequency = frequency;
	}

	public String getIndustryCode() {
		return industryCode;
	}

	public void setIndustryCode(String industryCode) {
		this.industryCode = industryCode;
	}

	public Integer getCanGetLastTimeData() {
		return canGetLastTimeData;
	}

	public void setCanGetLastTimeData(Integer canGetLastTimeData) {
		this.canGetLastTimeData = canGetLastTimeData;
	}

	public Integer getDataIsUnique() {
		return dataIsUnique;
	}

	public void setDataIsUnique(Integer dataIsUnique) {
		this.dataIsUnique = dataIsUnique;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	public IndicatorInput(Integer id, String name, String code, String unit, Integer enabled, Integer frequency,
			String industryCode, Integer canGetLastTimeData, Integer dataIsUnique, String description, Date createTime,
			Integer category, Date lastUpdate) {
		super();
		this.id = id;
		this.name = name;
		this.code = code;
		this.unit = unit;
		this.enabled = enabled;
		this.frequency = frequency;
		this.industryCode = industryCode;
		this.canGetLastTimeData = canGetLastTimeData;
		this.dataIsUnique = dataIsUnique;
		this.description = description;
		this.createTime = createTime;
		this.category = category;
		this.lastUpdate = lastUpdate;
	}

}
